
import { MyRequestOptions,HttpResponse } from './type';
import request from '@/utils/api/request';



// 获取用户钱包信息
export const userWallet = (
  option: MyRequestOptions = {}
): Promise<HttpResponse> => {
  option.url = `/user/userWallet`;
  return request.get(option);
};

//钱包明细
export const userWalletLog = (
  option: MyRequestOptions = {}
): Promise<HttpResponse> => {
  option.url = `/user/userWalletLog`;
  return request.get(option);
};


export const rechargeBalance = (
  option: MyRequestOptions = {}
): Promise<HttpResponse> => {
  option.url = `/app/store/rechargeBalance`;
  return request.post(option);
};

export const applyWithdraw = (
  option: MyRequestOptions = {}
): Promise<HttpResponse> => {
  option.url = `/app/rechargeOrWithdraw/applyWithdraw`;
  return request.post(option);
};